package com.justme.shipdfer.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author shiv
 * @create 2021/4/11 4:54 下午
 */
@Getter
@AllArgsConstructor
public enum RespCodeEnum {
    SUCCESS(0, "成功"),
    FAIL(1, "失败"),

    BAD_REQUEST(400, "错误的请求"),
    UNAUTHORIZED(401, "未授权的请求"),

    INTERNAL_SERVER_ERROR(500, "服务内部错误"),
    ;


    private final Integer code;

    private final String message;
}
